package model

import (
	"gorm.io/gorm"
	"time"
)

type LiveRoom struct {
	Id        uint           `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	ToUserId  uint           `gorm:"column:to_user_id;type:bigint(20);not null;" json:"to_user_id"`
	SendId    uint           `gorm:"column:send_id;type:bigint(20);not null;" json:"send_id"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}

func (l *LiveRoom) TableName() string {
	return "liveRoom"
}
